//
//  SJController.m
//  MeiLiShuo
//
//  Created by mac on 16/6/30.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "SJController.h"
#import "CustomView.h"

@interface SJController ()

@end

@implementation SJController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.view.backgroundColor = [UIColor whiteColor];
    [self topView];
}
-(void)topView
{
    CustomView * topView = [[CustomView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, 0.13*SCREEN_HEIGHT)];
    topView.searchBar.placeholder = @"搜索商品";
    [topView.leftBtn setImage:[UIImage imageNamed:@"bottom_sort_icon_on"] forState:UIControlStateNormal];
    [topView.rightBtn setImage:[UIImage imageNamed:@"bottom_shopping_icon_on"] forState:UIControlStateNormal];
    [self.view addSubview:topView];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
